<center>
<div id="addContent" style="width:900px;">
</div>

<div style="clear:both;height:10px;">&nbsp;</div>
<fieldset style="width:80%">
    <legend><?php _resource('list of '.$this->params['controller']);?></legend>
    <div>
    <?php if(1){ ?>
    <div class="button"><a onclick="ajax('addContent','<?php echo $this->params['controller'] ?>/add');" href="javascript:;" title="<?php _resource('add');?>"  > <span class="icon-32-new"> </span></a></div>
    <div class="button"><a onclick="ajax('addContent','<?php echo $this->params['controller'] ?>/add/0/1');" href="javascript:;" title="<?php _resource('rebuild');?>"  > <span class="icon-32-reset"> </span></a></div>
   <div class="button"><a onclick="ajaxSubmit('listContent','<?php echo $this->params['controller'] ?>/resetName','delete','listForm',true);" href="javascript:;" title="<?php _resource('reset name');?>"  > <span class="icon-32-upload"> </span></a></div>
   <div class="button"><a onclick="ajaxSubmit('listContent','<?php echo $this->params['controller'] ?>/delete','delete','listForm',true);" href="javascript:;" title="<?php _resource('delete');?>"  > <span class="icon-32-trash"> </span></a></div>
    
    <?php } ?>
    
    <div class="clear"></div>         
    </div> 
       
    <div id="listContent">
    	<script>
    		ajax('listContent','<?php echo $this->params['controller'] ?>/lists');
    	</script>
    </div>    
</fieldset>

</center>
